Repository navigation
test(string): cross-check checkSnakeCase against independent oracle (R50-T043) - #91
Open
aniruddha-bongale wants to merge 1 commit into
Open
aniruddha-bongale wants to merge 1 commit into
aniruddha-bongale wants to merge 1 commit into
Conversation
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR addresses task R50-T043 for
checkSnakeCase. It introduces independent reference-comparison regression tests comparingcheckSnakeCaseagainst an oracle and an explicit expected result table across 22 enumerated domain inputs, documents representative reference comparison behavior and precondition checks at Line 12 inString/CheckSnakeCase.js, and adds an automated check runnerwork/R50-T043/check.py.Related Issue
Fixes: #43
Type of Change
Changes Made
String/CheckSnakeCase.jsciting Line 12 (if (typeof varName !== 'string')).String/test/CheckSnakeCase.test.js:""(expectedfalse) and ordinary input"docker_build"(expectedtrue).referenceOracle) utilizing string splitting instead of regex.TypeError('Argument is not a string.')across 10 non-string input types.work/R50-T043/check.pyand saved verifiable execution evidence inwork/R50-T043/results.json.Screenshots / Recordings
N/A (String utility algorithmic unit test suite)
Testing
npx prettier --check String/CheckSnakeCase.js String/test/CheckSnakeCase.test.js work/R50-T043/results.jsonnpm test -- String/test/CheckSnakeCase.test.js(38 tests passed)python3 work/R50-T043/check.py(all checks and tool version captures passed)Checklist
Additional Notes
checkSnakeCasewhile locking down contract behavior via independent cross-checks.